<%@page import="department.domain.Department,java.util.ArrayList"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:useBean id="list" class="java.util.ArrayList" scope="request"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%@ include file = "/menu.jsp" %>
<h2>부서목록</h2>
<table width="500">
<tr>
	<td>부서ID</td>
	<td>부서명</td>
	<td>지역</td>
	<td>삭제</td>
	<td>수정</td>
</tr>

<c:forEach items="${requestScope.list }" var = "dept">

<tr>
	<td>${dept.departmentId }</td>
	<td>${dept.departmentName }</td>
	<td>${dept.location }</td>
	<td>
	<a href="/DepartmentManager/RemoveDepartmentServlet?departmentId=${dept.departmentId }">삭제</a></td>
	<td><a href="/DepartmentManager/ModifyDepartmentFormServlet?departmentId=${dept.departmentId }">수정</a></td>
</tr>
</c:forEach>

</table>


</body>
</html>






